package com.example.net.entity

import android.content.Context
import android.widget.Toast
import com.example.net.event.bus


data class MutilTypeEntity(
    val channelid: Any,
    val haschild: Int,
    val id: Int,
    val pid: Int,
    val pinyin: String,
    val typename: String
){
    fun onclick(context: Context){
        bus.postValue("GetId" to id)
        Toast.makeText(context, "$typename", Toast.LENGTH_SHORT).show()
    }
}